<?php
/* User Test cases generated on: 2010-11-16 11:11:47 : 1289902907*/
App::import('Model', 'User');

class UserTestCase extends CakeTestCase {
	var $fixtures = array('app.user', 'app.group', 'app.comment', 'app.design', 'app.pitch', 'app.pitch_subscription', 'app.design_photo', 'app.contractor_profile', 'app.designer_profile', 'app.job', 'app.message');

	function startTest() {
		$this->User =& ClassRegistry::init('User');
	}

	function endTest() {
		unset($this->User);
		ClassRegistry::flush();
	}
	
	function testUsername() {
		$this->User->recursive = -1;
		$result = $this->User->username(1);
		print_r($result);
		$expected =  array('User' => array('username' => 'userone'));
		$this->assertEqual($result, $expected);
	}

}
?>
